package com.kuang.design.creation.factory.abstractfactory;

/**
 * 抽象工厂
 */
public class MainTest {
    public static void main(String[] args) {

        WuLinCarWuHanFactory wuLinCarWuHanFactory = new WuLinCarWuHanFactory();
        AbstractCar abstractCar = wuLinCarWuHanFactory.newCar();
        abstractCar.run();

        WuLinMaskWuHanFactory wuLinMaskWuHanFactory = new WuLinMaskWuHanFactory();
        AbstractMask abstractMask = wuLinMaskWuHanFactory.newMask();
        abstractMask.protect();

    }
}
